package org.celery.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 商品标签表实体类
 *
 * @author Celery
 * @since 2021-10-27
 */
@Data
@TableName("celery_goods_label")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GoodsLabel对象", description = "商品标签表")
public class GoodsLabel extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    /**
     * 商品标签名称
     */
    @ApiModelProperty(value = "商品标签名称")
    private String name;
    /**
     * 商品标签编号
     */
    @ApiModelProperty(value = "商品标签编号")
    private String code;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色")
    private String color;


}
